package com.hythzx.ddns.config;

import java.util.List;

import lombok.Data;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhaoyuan
 */
@ConfigurationProperties(prefix = "application", ignoreInvalidFields = true)
public class ApplicationProperties {

	private Aliyun aliyun;

	private List<Dns> dns;

	@Data
	public static class Aliyun{

		private String appId;

		private String appSecret;

		private String region;
	}

	@Data
	public static class Dns{

		// 域名 如 hythzx.com
		private String domain;

		// 主机记录 如 www
		private String keyword;

		// 记录类型 如 A
		private String type;
	}

	public Aliyun getAliyun() {
		return aliyun;
	}

	public void setAliyun(Aliyun aliyun) {
		this.aliyun = aliyun;
	}

	public List<Dns> getDns() {
		return dns;
	}

	public void setDns(List<Dns> dns) {
		this.dns = dns;
	}
}
